<template>
  <div class="box">
    <img src="../assets/bg.jpg" alt="" />
    <h2>这是一个孤独可怜的狗</h2>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.box {
  width: 300px;
  height: 200px;
  border: 1px solid #888;
  float: left;
  margin-right: 20px;
  img {
    width: 100%;
  }
  h2 {
    text-align: center;
  }
}
</style>